#ifndef GAMETD_ROUTER_H
#define GAMETD_ROUTER_H

#include "Tile.h"
#include "SDL.h"
#include <vector>

class Router {
public:
    typedef std::vector<SDL_Point> IdxList;

    Router() = default;
    Router(const TileMap &map, const SDL_Point &idxOrigin);
    ~Router() = default;
    const IdxList &GetIdxList() const;

private:
    bool CheckDuplicateIdx(const SDL_Point &targetIdx);

private:
    IdxList idxList; // 路径节点列表
};


#endif //GAMETD_ROUTER_H
